{{extend 'layout.html'}}
<table class="list">
    <thead><tr>
        <th class="list_wgname">Name</th>
        <th class="list_wgenable">Enabled</th>
        <th class="list_wgenable"></th>
        <th class="list_wgenable"></th>
        <th class="list_wgorder">Order</th>
    </tr></thead>
    <tbody>
        {{for widget in widgets:}}
        <tr>
            <td class="list_wgname">{{=widget.fullname()}}</td>
            <td class="list_wgenable">{{=widget.isenabled()}}</td>
            {{if widget.isenabled():}}
            <td class="list_wgenable"><a href="/admin/widget/disable/{{=widget.fullname()}}">Disable</a></td>
            {{else:}}
            <td class="list_wgenable"><a href="/admin/widget/enable/{{=widget.fullname()}}">Enable</a></td>
            {{pass}}
            <td class="list_wgenable"><a href="/admin/widget/customize/{{=widget.fullname()}}">Customize</a></td>
            <td class="list_wgorder">{{=widget.order()}}</td>

        </tr>
        {{pass}}
    </tbody>
</table>
